/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.modules.partyassessment.entity;

import org.hibernate.validator.constraints.Length;

import com.fosung.frame.common.persistence.DataEntity;
import com.fosung.frame.modules.assessment.entity.AssessmentTime;
import com.fosung.frame.modules.partytype.entity.PartyType;

/**
 * 党组织考核Entity
 * @author wu
 * @version 2017-08-30
 */
public class PartyAssessment extends DataEntity<PartyAssessment> {
	
	private static final long serialVersionUID = 1L;
	private String assessmentName;		// 考核表名称
	private String area;		// 区域
	private String typeId;		// 社区类型
	private String assessmentTimeId;		// 周期
	private String state;		// 状态(是否启动)
	private String upperLimitScore;		// 上限分数
	private String initialScore;		// 初始分数
	private AssessmentTime assessment;
	private PartyType partyType ;
	
	public PartyAssessment() {
		super();
	}

	public PartyAssessment(String id){
		super(id);
	}

	@Length(min=0, max=64, message="考核表名称长度必须介于 0 和 64 之间")
	public String getAssessmentName() {
		return assessmentName;
	}

	public void setAssessmentName(String assessmentName) {
		this.assessmentName = assessmentName;
	}
	
	@Length(min=0, max=32, message="区域长度必须介于 0 和 32 之间")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Length(min=0, max=64, message="社区类型长度必须介于 0 和 64 之间")
	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
	
	@Length(min=0, max=32, message="周期长度必须介于 0 和 32 之间")
	public String getAssessmentTimeId() {
		return assessmentTimeId;
	}

	public void setAssessmentTimeId(String assessmentTimeId) {
		this.assessmentTimeId = assessmentTimeId;
	}
	
	@Length(min=0, max=1, message="状态(是否启动)长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=32, message="上限分数长度必须介于 0 和 32 之间")
	public String getUpperLimitScore() {
		return upperLimitScore;
	}

	public void setUpperLimitScore(String upperLimitScore) {
		this.upperLimitScore = upperLimitScore;
	}
	
	@Length(min=0, max=32, message="初始分数长度必须介于 0 和 32 之间")
	public String getInitialScore() {
		return initialScore;
	}

	public void setInitialScore(String initialScore) {
		this.initialScore = initialScore;
	}

	public AssessmentTime getAssessment() {
		return assessment;
	}

	public void setAssessment(AssessmentTime assessment) {
		this.assessment = assessment;
	}

	public PartyType getPartyType() {
		return partyType;
	}

	public void setPartyType(PartyType partyType) {
		this.partyType = partyType;
	}
	
}